<template>
  <div>
    <div>
      <h4>稳定性</h4>
      <el-row>
        <el-col>
          <div>
            <el-input
              type="textarea"
              resize="none"
              :rows="2"
              placeholder="下肢伸直受限"
              v-model="pgForm.deduction_items_textarea">
            </el-input>
          </div>
        </el-col>
        <el-col>
          <span>屈曲挛缩</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.deduction_items_radio1" style="width: 100%;">
              <el-radio :label="1"><5°</el-radio>
              <el-radio :label="2"><6°~10°</el-radio>
              <el-radio :label="3">11°~20°</el-radio>
              <el-radio :label="4">>-20°</el-radio>
              <el-input v-model="pgForm.deduction_items_input1" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col>
          <span>下肢排列力线不佳</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.deduction_items_radio2" style="width: 100%;">
              <el-radio :label="1"></el-radio>
              <el-radio :label="2"></el-radio>
              <el-radio :label="3"></el-radio>
              <el-input v-model="pgForm.deduction_items_input2" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col>
          <span>你休息时膝关节疼痛程度如何？</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.deduction_items_radio3">
              <el-radio :label="1">没有</el-radio>
              <el-radio :label="2">轻度或偶尔</el-radio>
              <el-radio :label="3">中度</el-radio>
              <el-radio :label="4">严重</el-radio>
              <el-input v-model="pgForm.deduction_items_input3" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "deduction_items",
  title: "扣分项目",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      pgForm: {
        deduction_items_radio1: '',
        deduction_items_radio2: '',
        deduction_items_radio3: '',
        deduction_items_input1: '',
        deduction_items_input2: '',
        deduction_items_input3: '',
        deduction_items_textarea: ''
      }
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-radio-group{
  padding: 10px 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}
span{
  display: block;
}
</style>
